
#!/bin/bash

# 创建构建目录
mkdir -p build

# 编译基础组件测试
echo "编译基础组件测试..."
g++ -std=c++11 -pthread -I. -o build/test_basic test_basic.cpp

# 检查编译是否成功
if [ $? -eq 0 ]; then
    echo "编译成功！"
    echo "运行测试..."
    echo "=================="
    ./build/test_basic
else
    echo "编译失败！"
    exit 1
fi
